package com.wm.machine.baselibrary.utils.okhttp.exceptions;

/**
 * Copyright
 * author zhengcheng
 * date 2018/4/2
 * describe 异常枚举类
 * history
 */

public enum ExceptionEnum {
    //服务器异常
    SERVER_ERROR(1000),
    //解析错误
    PARSE_ERROR(1001),
    //网络错误
    NETWORK_ERROR(1002),
    //协议出错
    TIMEOUT_ERROR(1003),
    //未知错误
    UNKNOW(1004);
    private int code;
    ExceptionEnum(int code) {
        this.code = code;
    }
    public int getCode() {
        return code;
    }
    public void setCode(int code) {
        this.code = code;
    }
}
